<?php

require '..\src\cxss.php';
@header('Content-type: text/html');
define('APPLICATION', 'Test Application');
define('APP_ROOT', 'Z:/TEST_APP');

CxSession::check(@$_GET['session'] == 'open');
CxSession::close(@$_GET['session'] == 'close');

function create_ini ($filename) {
    return new CxIni ($filename);
}

$T = (float)xdebug_time_index();
$INI = CxSession::varc('INI', 'create_ini', 'c.ini.php');
$T = 1000*((float)xdebug_time_index() - $T);

?><html><body><pre>
[<a href="?session=open">open</a>][<a href="?">refresh</a>][<a href="?session=close">close</a>]
<?php

echo "Time: $T ms\r\n";
echo($INI['sample']['e-mail']);
var_dump( xdebug_get_headers(), $INI );

?>
</pre></body></html>